.module
  %h4= @config["title"]
  - @themes =Dir.entries(RAILS_ROOT+"/themes")
  %ul
    %li
      %form{:action=>url_for(:controller=>'plugin/themeswitch',:action=> 'changetheme')}
        %select{:id=>"themeswitch",:name=>"themeswitch"}
          - for theme in @themes
            - if theme[0]!=46
              - if session[:loadedsettings]["theme"].to_s==theme.to_s
                %option{:value=>theme, :selected=>"selected"}
                  = theme
              - else 
                %option{:value=>theme}
                  = theme
        = submit_tag _('switch')

